﻿const path = require("path");

module.exports = {
    module: {
        rules: [
            {
                test: /\.(js|jsx)$/,
                exclude: /node_modules/,
                use: {
                    loader: "babel-loader"
                }
            },
            {
                test: /moment[\\/]locale$/,
                loader: 'ignore-loader'
            },
            {
                test: /\.(exe|obj|txt|tlog|c|pdb|idb|lastbuildstate|ilk|recipe|cpp|filters|user|vcxproj|sln|log)$/i,
                loader: 'null-loader'
            },
           
        ]
    },
    output: {
        path: path.resolve(__dirname, '../wwwroot/js'),
        filename: "my_lib.js",
        library: "MyLib"
    }
};
